package pl.koziolekweb.szkola;

import java.io.File;
import java.io.FileFilter;

/**
 * Hello world!
 * 
 */
public class App {
	public static void main(String[] args) {
		File file = new File("src/main/java/pl/koziolekweb/szkola");
		System.out.println(file.exists());
		File[] dirs = file.listFiles(new FileFilter() {
			public boolean accept(File pathname) {
				if(pathname.isDirectory())
					return true;
				return false;
			}
		});
		for(File dir: dirs){
			String name = dir.getName();
			name = name.replaceAll("-", "");
			dir.renameTo(new File(file.getAbsoluteFile()+"/"+name));
		}
	}
}
